package com.yoyo.yyadsdk.bean.dao;

import com.yoyo.yyadsdk.config.PullFeature;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

@Entity
public class PullBaseEntity {

    @Id(autoincrement = true)
    private Long _id;
    /**
     * 拉活类型 {@link com.yoyo.yyadsdk.config.PullFeature}
     */
    private int type;
    //被监控应用
    private String oPkg;
    //目标应用
    private String tPkg;
    //两次拉活间隔活跃时间 单位：分钟
    private int interval;
    //目标应用多久没有活跃才拉活，单位：小时
    private int inactivity;
    //优先级
    private int priority;
    //应用拉活周期  单位：小时
    private int period;
    //应用拉活周期内最多拉活次数
    private int duration;
    //开始生效时间
    private Long startTime;
    //生效结束时间
    private Long endTime;
    //当日内的开始时间(HHmm)
    private String duringStartTime;
    //当日内的结束时间(HHmm)
    private String duringEndTime;
    //目标应用存活时间  单位：分钟，-1为不杀
    private int liveTime;
    //是否允许用户发现
    private boolean allowDiscover;
    //是否退入后台
    private boolean isBackHome;
    //该类型任务拉活次数
    private int frequency;
    //拉活前是否关闭进程
    private boolean isCloseApp;
    //夜间目标应用启动延时时间  单位：分钟
    private int nightDelayTime;
    //是否自动安装
    private boolean isAutoInst;
    //白名单
    private Long whiteListId;
    //黑名单
    private Long blackListId;
    @Generated(hash = 332280927)
    public PullBaseEntity(Long _id, int type, String oPkg, String tPkg,
            int interval, int inactivity, int priority, int period, int duration,
            Long startTime, Long endTime, String duringStartTime,
            String duringEndTime, int liveTime, boolean allowDiscover,
            boolean isBackHome, int frequency, boolean isCloseApp,
            int nightDelayTime, boolean isAutoInst, Long whiteListId,
            Long blackListId) {
        this._id = _id;
        this.type = type;
        this.oPkg = oPkg;
        this.tPkg = tPkg;
        this.interval = interval;
        this.inactivity = inactivity;
        this.priority = priority;
        this.period = period;
        this.duration = duration;
        this.startTime = startTime;
        this.endTime = endTime;
        this.duringStartTime = duringStartTime;
        this.duringEndTime = duringEndTime;
        this.liveTime = liveTime;
        this.allowDiscover = allowDiscover;
        this.isBackHome = isBackHome;
        this.frequency = frequency;
        this.isCloseApp = isCloseApp;
        this.nightDelayTime = nightDelayTime;
        this.isAutoInst = isAutoInst;
        this.whiteListId = whiteListId;
        this.blackListId = blackListId;
    }
    @Generated(hash = 810193771)
    public PullBaseEntity() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public String getOPkg() {
        return this.oPkg;
    }
    public void setOPkg(String oPkg) {
        this.oPkg = oPkg;
    }
    public String getTPkg() {
        return this.tPkg;
    }
    public void setTPkg(String tPkg) {
        this.tPkg = tPkg;
    }
    public int getInterval() {
        return this.interval;
    }
    public void setInterval(int interval) {
        this.interval = interval;
    }
    public int getInactivity() {
        return this.inactivity;
    }
    public void setInactivity(int inactivity) {
        this.inactivity = inactivity;
    }
    public int getPriority() {
        return this.priority;
    }
    public void setPriority(int priority) {
        this.priority = priority;
    }
    public int getPeriod() {
        return this.period;
    }
    public void setPeriod(int period) {
        this.period = period;
    }
    public int getDuration() {
        return this.duration;
    }
    public void setDuration(int duration) {
        this.duration = duration;
    }
    public Long getStartTime() {
        return this.startTime;
    }
    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }
    public Long getEndTime() {
        return this.endTime;
    }
    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
    public String getDuringStartTime() {
        return this.duringStartTime;
    }
    public void setDuringStartTime(String duringStartTime) {
        this.duringStartTime = duringStartTime;
    }
    public String getDuringEndTime() {
        return this.duringEndTime;
    }
    public void setDuringEndTime(String duringEndTime) {
        this.duringEndTime = duringEndTime;
    }
    public int getLiveTime() {
        return this.liveTime;
    }
    public void setLiveTime(int liveTime) {
        this.liveTime = liveTime;
    }
    public boolean getAllowDiscover() {
        return this.allowDiscover;
    }
    public void setAllowDiscover(boolean allowDiscover) {
        this.allowDiscover = allowDiscover;
    }
    public boolean getIsBackHome() {
        return this.isBackHome;
    }
    public void setIsBackHome(boolean isBackHome) {
        this.isBackHome = isBackHome;
    }
    public int getFrequency() {
        return this.frequency;
    }
    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }
    public boolean getIsCloseApp() {
        return this.isCloseApp;
    }
    public void setIsCloseApp(boolean isCloseApp) {
        this.isCloseApp = isCloseApp;
    }
    public int getNightDelayTime() {
        return this.nightDelayTime;
    }
    public void setNightDelayTime(int nightDelayTime) {
        this.nightDelayTime = nightDelayTime;
    }
    public boolean getIsAutoInst() {
        return this.isAutoInst;
    }
    public void setIsAutoInst(boolean isAutoInst) {
        this.isAutoInst = isAutoInst;
    }
    public Long getWhiteListId() {
        return this.whiteListId;
    }
    public void setWhiteListId(Long whiteListId) {
        this.whiteListId = whiteListId;
    }
    public Long getBlackListId() {
        return this.blackListId;
    }
    public void setBlackListId(Long blackListId) {
        this.blackListId = blackListId;
    }


}
